package com.fangxing.apps.example.redis;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by fangxing on 17-6-19.
 */
@Service
public class UserRedisService {
    private Logger logger = LoggerFactory.getLogger(UserRedisService.class);

    //@Autowired
    private UserRedisRepository userRedisRepository;

    public void addUser(){
        UserRedisEntity entity = new UserRedisEntity();
        entity.setId("123131");
        entity.setName("fangxing");

        userRedisRepository.addUser(entity);
    }

}
